package com.csust.automaticteach.mapper;

import com.csust.automaticteach.model.entity.ClassTeacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csust.automaticteach.model.vo.classes.classteacher.TeacherClassesVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 钰玟
* @description 针对表【t_class_teacher(班级老师关联表)】的数据库操作Mapper
* @createDate 2025-08-16 15:41:28
* @Entity com.csust.automaticteach.model.entity.ClassTeacher
*/
public interface ClassTeacherMapper extends BaseMapper<ClassTeacher> {

    /**
     * 根据老师 id 查询该老师所在班级的名称及担任角色
     * @param teacherId 老师 id
     * @return  List<ClassTeacher>
     */
    List<TeacherClassesVO> listClassesByTeacherId(@Param("teacherId")Long teacherId);

}




